//
//  ApiRequest.h
//  ScoutIOS
//
//  Created by bigknife on 13-9-6.
//  Copyright (c) 2013年 bigknife. All rights reserved.
//

#import <Foundation/Foundation.h>
@interface ApiRequest : NSObject
////操作系统信息
@property (nonatomic,strong) NSString *os;
////客户端版本号
@property (nonatomic, strong) NSString *appVersion;
////api 版本号
@property (nonatomic, strong) NSString *apiVersion;
////设备号
@property (nonatomic,strong) NSString *deviceId;
////请求会话token
@property (nonatomic,strong) NSString *token;
////地理信息：纬度
@property (nonatomic) double latitude;
////地理信息：经度
@property (nonatomic) double longitude;
////请求时间
@property (nonatomic) long requestTime;
////请求ID
@property (nonatomic,strong) NSString *requestId;
////数据签名，防篡改
@property (nonatomic,strong) NSString *sign;
//业务请求参数
@property (nonatomic, strong) NSDictionary * bizDataDict;
//业务数据
@property (nonatomic,strong) NSData * dataArray;
@property (nonatomic,strong) NSString * nameArray;
@property (nonatomic,strong) NSString * fileNameArray;
@property (nonatomic,strong) NSString * mimeType;
/*!
 @method
 @param         dataArray: 文件数据数组
 @param         nameArray: 名称数组（服务器用来提取数据的参数名称）
 @param         fileNameArray: 文件名数组
 @param         mimeType: mime type
 @param         successHandler: 请求成功回调
 @param         failHandler: 请求失败回调
 @discussion    请求使用异步方式进行,scheme和host使用默认配置值
 @return        void
 */

+(id) requestWithBizPath:(NSData *)dataArray nameArray:(NSString *)nameArray fileNameArray:(NSString *)fileNameArray mimeType:(NSString *)mimeType;
+(id) requestWithBizData:(NSDictionary *)dictionary;

@end
